<?php


namespace app\web\controller;


use app\common\lib\Util;
use think\Controller;
use think\Env;

class LogoutAccount extends Controller
{
    /**
     * 注销页面h5
     */
    public function index()
    {
        return $this->fetch();
    }

    /**
     * 注销协议h5
     */
    public function agreement()
    {
        return $this->fetch();
    }

    /**
     * 充值协议
     * @return mixed
     */
    public function recharge_agreement()
    {
        $host = Env::get('host.photo');

        if (Util::CheckAppVersion('2.9.7') === '大')
        {
            $photos = [
                $host . '/test/agreement/coin_agreement1.png',
                $host . '/test/agreement/coin_agreement2new.png',
                $host . '/test/agreement/coin_agreement3.png',
                $host . '/test/agreement/coin_agreement4.png',
            ];
        } else
        {
            $photos = [
                $host . '/test/agreement/coin_agreement1.png',
                $host . '/test/agreement/coin_agreement2.png',
                $host . '/test/agreement/coin_agreement3.png',
                $host . '/test/agreement/coin_agreement4.png',
            ];
        }
        return $this->fetch('recharge_agreement', ['photos' => $photos]);
    }
}